|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
this is information on a product in full production. march 2016 docid022799 rev 12 1/136 stm32l15xcc stm32l15xrc stm32l15xuc stm32l15xvc ultra-low-power 32-bit mcu arm ? -based cortex ? -m3, 256kb flash, 32kb sram, 8kb eeprom, lcd, usb, adc, dac datasheet - production data features ? ultra-low-power platform ? 1.65 v to 3.6 v power supply ? -40 c to 105 c temperature range ? 0.29a standby mode (3 wakeup pins) ? 1.15 a standby mode + rtc ? 0.44 a stop mode (16 wakeup lines) ? 1.4 a stop mode + rtc ? 8.6 a low-power run mode ? 185 a/mhz run mode ? 10 na ultra-low i/o leakage ? 8 s wakeup time ? core: arm ? cortex ? -m3 32-bit cpu ? from 32 khz up to 32 mhz max ? 1.25 dmips/mhz (dhrystone 2.1) ? memory protection unit ? reset and supply management ? low-power, ultrasafe bor (brownout reset) with 5 selectable thresholds ? ultra-low-power por/pdr ? programmable voltage detector (pvd) ? clock sources ? 1 to 24 mhz crystal oscillator ? 32 khz oscillator for rtc with calibration ? high speed internal 16 mhz factory-trimmed rc (+/- 1%) ? internal low-power 37 khz rc ? internal multispeed low-power 65 khz to 4.2 mhz pll for cpu clock and usb (48 mhz) ? pre-programmed bootloader ? usb and usart supported ? development support ? serial wire debug supported ? jtag and trace supported ? up to 83 fast i/os (7 0 i/os 5v tolerant), all mappable on 16 external interrupt vectors ? memories ? 256 kb flash memory with ecc ? 32 kb ram ? 8 kb of true eeprom with ecc ? 128-byte backup register ? lcd driver (except stm32l151xc devices) up to 8x40 segments, contrast adjustment, blinking mode, step-up converter ? rich analog peripherals (down to 1.8 v) ? 2x operational amplifiers ? 12-bit adc 1msps up to 25 channels ? 12-bit dac 2 channels with output buffers ? 2x ultra-low-power-comparators (window mode and wa ke up capability) ? dma controller 12x channels ? 9x peripheral communication interfaces ? 1x usb 2.0 (internal 48 mhz pll) ? 3x usarts ? up to 8x spis (2x i2s, 3x 16 mbit/s) ? 2x i2cs (smbus/pmbus) ? 11x timers: 1x 32-bit, 6x 16-bit with up to 4 ic/oc/pwm channels, 2x 16-bit basic timers, 2x watchdog timers (i ndependent and window) ? up to 23 capacitive sensing channels ? crc calculation unit, 96-bit unique id table 1. device summary reference part number stm32l151cc stm32l151rc (1) stm32l151uc stm32l151vc (1) 1. for sales types ending with ?a? and stm32l15xxc products in wlcsp64 package, please refer to stm32l15xxc/c-a datasheet. stm32l151cct6, STM32L151CCU6 stm32l151rct6 stm32l151ucy6 stm32l151vct6, stm32l151vch6 stm32l152cc stm32l152rc (1) stm32l152uc stm32l152vc (1) stm32l152cct6, stm32l152ccu6 stm32l152rct6 stm32l152ucy6 stm32l152vct6, stm32l152vch6 lqfp100 (14 14 mm) lqfp64 (10 10 mm) lqfp48 (7 x 7 mm) ufbga100 (7 x 7 mm) wlcsp63 (0.4 mm pitch) ufqfpn48 (7x7 mm) www.st.com
contents stm32l151xc stm32l152xc 2/136 docid022799 rev 12 contents 1 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.1 device overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 2.2 ultra-low-power device continuum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.2.1 performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.2.2 shared peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.2.3 common system strategy. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.2.4 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 functional overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.1 low-power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.2 arm ? cortex ? -m3 core with mpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 3.3 reset and supply management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.3.1 power supply schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.3.2 power supply supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.3.3 voltage regulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.3.4 boot modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 3.4 clock management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 3.5 low-power real-time clock and backup registers . . . . . . . . . . . . . . . . . . . 23 3.6 gpios (general-purpose inputs/outputs) . . . . . . . . . . . . . . . . . . . . . . . . . 23 3.7 memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.8 dma (direct memory access) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.9 lcd (liquid crystal display) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.10 adc (analog-to-digital converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.10.1 temperature sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.10.2 internal voltage reference (v refint ) . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.11 dac (digital-to-analog converter) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 3.12 operational amplifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 3.13 ultra-low-power comparators and reference voltage . . . . . . . . . . . . . . . . 27 3.14 system configuration controller and routi ng interface . . . . . . . . . . . . . . . 27 3.15 touch sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 docid022799 rev 12 3/136 stm32l151xc stm32l152xc contents 4 3.16 timers and watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.16.1 general-purpose timers (tim2, tim3, tim4, tim5, tim9, tim10 and tim11) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.16.2 basic timers (tim6 and tim7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.16.3 systick timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.16.4 independent watchdog (iwdg) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.16.5 window watchdog (wwdg) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.17 communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.17.1 i2c bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 3.17.2 universal synchronous/asynchronous receiver transmitter (usart) . . 30 3.17.3 serial peripheral interface (spi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.17.4 inter-integrated sound (i2s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.17.5 universal serial bus (usb) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 3.18 crc (cyclic redundancy check) calculation unit . . . . . . . . . . . . . . . . . . . 30 3.19 development support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.19.1 serial wire jtag debug port (swj-dp) . . . . . . . . . . . . . . . . . . . . . . . . . 31 3.19.2 embedded trace macrocell? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 4 pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 5 memory mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6 electrical characteristi cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.1 parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.1.1 minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.1.2 typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.1.3 typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.1.4 loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.1.5 pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 6.1.6 power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 6.1.7 optional lcd power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.1.8 current consumption measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 6.2 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 6.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.3.1 general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 6.3.2 embedded reset and power control bloc k characteristics . . . . . . . . . . . 57 6.3.3 embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . 59 contents stm32l151xc stm32l152xc 4/136 docid022799 rev 12 6.3.4 supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 6.3.5 wakeup time from low-power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 6.3.6 external clock source characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 6.3.7 internal clock source charac teristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 6.3.8 pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.3.9 memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.3.10 emc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 6.3.11 electrical sensitivity characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 6.3.12 i/o current injection characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 6.3.13 i/o port characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 6.3.14 nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 6.3.15 tim timer characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 6.3.16 communications interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 6.3.17 12-bit adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 6.3.18 dac electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 6.3.19 operational amplifier characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . 105 6.3.20 temperature sensor characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 6.3.21 comparator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 6.3.22 lcd controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 7 package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 7.1 lqfp100, 14 x 14 mm, 100-pin low-profile quad flat package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110 7.2 lqfp64, 10 x 10 mm, 64-pin low-profile quad flat package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113 7.3 lqfp48, 7 x 7 mm, 48-pin low-profile quad flat package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 7.4 ufqfpn48 7 x 7 mm, 0.5 mm pitch, package information . . . . . . . . . . .119 7.5 ufbga100, 7 x 7 mm, 100-ball ultra thin, fine pitch ball grid array package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 7.6 wlcsp63, 0.400 mm pitch wafer level chip size package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 7.7 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 7.7.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 8 part numbering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 9 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 docid022799 rev 12 5/136 stm32l151xc stm32l152xc list of tables 6 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. ultra-low-power stm32l151xc and stm32l152xc device features and peripheral counts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 table 3. functionalities depending on the operating power supply range . . . . . . . . . . . . . . . . . . . . 15 table 4. cpu frequency range depending on dynamic voltag e scaling . . . . . . . . . . . . . . . . . . . . . . 16 table 5. functionalities depending on the wo rking mode (from run/active down to standby) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 table 6. v lcd rail decoupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 table 7. timer feature comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 table 8. legend/abbreviations used in the pinout table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 9. stm32l151xc and stm32l152xc pin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 table 10. alternate function input/output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 table 11. voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 12. current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 table 13. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 14. general operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 table 15. embedded reset and power control block characterist ics. . . . . . . . . . . . . . . . . . . . . . . . . . 57 table 16. embedded internal reference voltage calibration valu es . . . . . . . . . . . . . . . . . . . . . . . . . . 59 table 17. embedded internal reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 9 table 18. current consumption in run mode, code with data processing running from flash. . . . . . 61 table 19. current consumption in run mode, code wit h data processing running from ram . . . . . . 62 table 20. current consumption in sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 table 21. current consumption in low-power run mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 table 22. current consumption in low-power sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 table 23. typical and maximum current consumptions in st op mode . . . . . . . . . . . . . . . . . . . . . . . . 66 table 24. typical and maximum current consumptions in standby mode . . . . . . . . . . . . . . . . . . . . . 68 table 25. peripheral current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 table 26. low-power mode wakeup timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 table 27. high-speed external user clock characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 table 28. low-speed external user clock characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 table 29. hse oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74 table 30. lse oscillator characteristics (f lse = 32.768 khz) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 31. hsi oscillator characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 32. lsi oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 table 33. msi oscillator ch aracteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 table 34. pll characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table 35. ram and hardware registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 table 36. flash memory and dat a eeprom characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 table 37. flash memory and data eeprom endurance and retention . . . . . . . . . . . . . . . . . . . . . . . 81 table 38. ems characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82 table 39. emi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 40. esd absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 table 41. electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 42. i/o current injection susceptibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84 table 43. i/o static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 table 44. output voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 table 45. i/o ac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 table 46. nrst pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 list of tables stm32l151xc stm32l152xc 6/136 docid022799 rev 12 table 47. timx characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 table 48. i 2 c characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90 table 49. scl frequency (f pclk1 = 32 mhz, v dd = vdd_i2c = 3.3 v). . . . . . . . . . . . . . . . . . . . . . . . 91 table 50. spi characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 table 51. usb startup time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 52. usb dc electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 53. usb: full speed electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 table 54. i2s characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 table 55. adc clock frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 table 56. adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 table 57. adc accuracy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 table 58. maximum source impedance r ain max . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 table 59. dac characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 table 60. operational amplifier characteristic s. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 table 61. temperature sensor calibration values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 table 62. temperature sensor characteristic s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 7 table 63. comparator 1 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 table 64. comparator 2 characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 table 65. lcd controller characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 table 66. lqpf100, 14 x 14 mm, 100-pin low-profile quad flat package mechanical data . . . . . . . 110 table 67. lqfp64, 10 x 10 mm 64-pin low-profile quad flat package mechanical data. . . . . . . . . . 113 table 68. lqfp48, 7 x 7 mm, 48-pin low-profile quad flat package mechanical data . . . . . . . . . . . 117 table 69. ufqfpn48 ? ultra thin fine pitch quad flat pack no-lead 7 7 mm, 0.5 mm pitch package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 table 70. ufbga100, 7 x 7 mm, 0.5 mm pitch package mech anical data . . . . . . . . . . . . . . . . . . . 122 table 71. ufbga100, 7 x 7 mm, 0.50 mm pitch, recomme nded pcb design rules . . . . . . . . . . . . 123 table 72. wlcsp63, 0.400 mm pitch wafer level chip si ze package mechanical data . . . . . . . . . . 126 table 73. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 table 74. stm32l151xc and stm32l152xc ordering informa tion scheme . . . . . . . . . . . . . . . . . . 130 table 75. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131 docid022799 rev 12 7/136 stm32l151xc stm32l152xc list of figures 8 list of figures figure 1. ultra-low-power stm32l151xc and stm32l152xc block diagram . . . . . . . . . . . . . . . . . 13 figure 2. clock tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 figure 3. stm32l15xvc ufbga100 ballout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 figure 4. stm32l15xvc lqfp100 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 figure 5. stm32l15xrc lqfp64 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 6. stm32l15xuc wlcsp63 ballout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 figure 7. stm32l15xcc ufqfpn48 pinout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 figure 8. stm32l15xcc lqfp48 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 figure 9. memory map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 figure 10. pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 figure 11. pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 figure 12. power supply scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 figure 13. optional lcd power supply scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 figure 14. current consumption measurement scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 figure 15. high-speed external clock source ac timing diagra m . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 figure 16. low-speed external clock source ac timing diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 figure 17. hse oscillator circuit diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 figure 18. typical application with a 32.768 khz crystal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 figure 19. i/o ac characteristics definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 figure 20. recommended nrst pin protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 figure 21. i 2 c bus ac waveforms and measurement ci rcuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 figure 22. spi timing diagram - slave mode and cpha = 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 23. spi timing diagram - slave mode and cpha = 1 (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 figure 24. spi timing diagram - master mode (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 figure 25. usb timings: definition of data signal rise and fa ll time . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 figure 26. i 2 s slave timing diagram (philips protocol) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 27. i 2 s master timing diag ram (philips protocol) (1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 figure 28. adc accuracy characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 figure 29. typical connection diagram using the adc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 figure 30. maximum dynamic current consumption on v ref+ supply pin during adc conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 figure 31. 12-bit buffered /non-buffered dac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 figure 32. lqfp100, 14 x 14 mm, 100-pin low-profile quad flat package outline . . . . . . . . . . . . . . . 110 figure 33. lqfp100, 14 x 14 mm, 100-pin low-profile quad flat package recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 figure 34. lqfp100, 14 x 14 mm, 100-pin low-profile quad flat package top view example . . . . . . 112 figure 35. lqfp64, 10 x 10 mm, 64-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . 113 figure 36. lqfp64, 10 x 10 mm, 64-pin low-profile quad flat package recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 figure 37. lqfp64 10 x 10 mm, 64-pin low-profile quad flat package top view example . . . . . . . . . 115 figure 38. lqfp48, 7 x 7 mm, 48-pin low-profile quad flat package outline . . . . . . . . . . . . . . . . . . . 116 figure 39. lqfp48 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 7 figure 40. lqfp48 package top view example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 figure 41. ufqfpn48 7 x 7 mm, 0.5 mm pitch, package outli ne . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 figure 42. ufqfpn48 recommended footprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 figure 43. ufqfpn48 package top view example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121 figure 44. ufbga100, 7 x 7 mm, 0.5 mm pitch package outlin e . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 figure 45. ufbga100, 7 x 7 mm, 0.5 mm pitch, packa ge recommended footprint. . . . . . . . . . . . . . 123 list of figures stm32l151xc stm32l152xc 8/136 docid022799 rev 12 figure 46. ufbga100, 7 x 7 mm, 0.5 mm pitch, package top view example . . . . . . . . . . . . . . . . . . 124 figure 47. wlcsp63, 0.400 mm pitch wafer level chip size package outline . . . . . . . . . . . . . . . . . . 125 figure 48. wlcsp63 device marking example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 figure 49. thermal resistance suffix 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 figure 50. thermal resistance suffix 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 docid022799 rev 12 9/136 stm32l151xc stm32l152xc introduction 51 1 introduction this datasheet provides the ordering informat ion and mechanical devic e characteristics of the stm32l151xc and stm32l152xc ultra-low-power arm ? cortex ? -m3 based microcontroller product line with a flash memory of 256 kbytes. the ultra-low-power stm32l151xc and stm32l152xc family includes devices in 6 different package types: from 48 pins to 100 pins. depending on the device chosen, different sets of peripherals are included, the description below gives an overview of the complete range of peripherals proposed in this family. these features make the ultra-low-power stm32l151xc and stm32l152xc microcontroller family suitable for a wide range of applications: ? medical and handheld equipment ? application control and user interface ? pc peripherals, gaming, gps and sport equipment ? alarm systems, wired and wireless sensors, video intercom ? utility metering this stm32l151xc and stm32l152xc datasheet should be read in conjunction with the stm32l1xxxx reference manual (rm0038). the application note ?getting started with stm32l1xxxx hardware development? (an3216) gives a hardware implementation overview. both documents are available from the stmicroelectronics website www.st.com . for information on the arm ? cortex ? -m3 core please refer to the arm ? cortex ? -m3 technical reference manual, availabl e from the www.arm.com website. figure 1 shows the general block diagram of the device family. description stm32l151xc stm32l152xc 10/136 docid022799 rev 12 2 description the ultra-low-power stm32l151xc and stm32l152xc devices incorporate the connectivity power of the universal seri al bus (usb) with the high-performance arm ? cortex ? -m3 32-bit risc core operating at a frequ ency of 32 mhz (33.3 dmips), a memory protection unit (mpu), high-speed embedded memories (flash memory up to 256 kbytes and ram up to 32 kbytes) and an extensiv e range of enhanced i/os and peripherals connected to two apb buses. the stm32l151xc and stm32l152xc devices offer two operational amplifiers, one 12-bit adc, two dacs, two ultra-low-power comparators, one general-purpose 32-bit timer, six general-purpose 16-bit timers and two basic timers, which can be used as time bases. moreover, the stm32l151xc and stm32l152xc devices contain standard and advanced communication interfaces: up to two i2cs, three spis, two i2s, three usarts and an usb. the stm32l151xc and stm32l152xc devices offer up to 23 capacitive sensing channels to simply add a touch sensing functionality to any application. they also include a real-time clock and a set of backup registers that remain powered in standby mode. finally, the integrated lcd controller (except stm32l151xc devices) has a built-in lcd voltage generator that allows to drive up to 8 multiplexed lcds with the contrast independent of the supply voltage. the ultra-low-power stm32l151xc and stm32l152xc devices operate from a 1.8 to 3.6 v power supply (down to 1.65 v at power down) with bor and from a 1.65 to 3.6 v power supply without bor option. they are available in the -40 to +85 c and -40 to +105 c temperature ranges. a comprehensive set of po wer-saving modes allows the design of low- power applications. docid022799 rev 12 11/136 stm32l151xc stm32l152xc description 51 2.1 device overview table 2. ultra-low-power stm32l151xc and stm32l152xc device features and peripheral counts peripheral stm32l15xcc stm32l15xuc stm32l15xrc stm32l15xvc flash (kbytes) 256 data eeprom (kbytes) 8 ram (kbytes) 32 timers 32 bit 1 general- purpose 6 basic 2 communica tion interfaces spi 8(3) (1) 1. 5 spis are usart configured in synchronous mode emulating spi master. i 2 s 2 i 2 c 2 usart 3 usb 1 gpios 37 51 83 operation amplifiers 2 12-bit synchronized adc number of channels 1 14 1 21 1 25 12-bit dac number of channels 2 2 lcd (2) com x seg 2. stm32l152xx devices only. 1 4x18 1 4x32 or 8x28 1 4x44 or 8x40 comparators 2 capacitive sensing channels 16 23 max. cpu frequency 32 mhz operating voltage 1.8 v to 3.6 v (down to 1.65 v at power-down) with bor option 1.65 v to 3.6 v without bor option operating temperatures ambient operating temperature: -40 c to 85 c / -40 c to 105 c junction temperature: ?40 to + 110 c packages lqfp48, ufqfpn48 lqfp64, wlcsp63 lqfp100, ufbga100 description stm32l151xc stm32l152xc 12/136 docid022799 rev 12 2.2 ultra-low-power device continuum the ultra-low-power family offers a large choice of cores and features. from proprietary 8- bit to up to cortex-m3, including the cortex-m0+, the stm32lx series are the best choice to answer the user needs, in terms of ultra-lo w-power features. the stm32 ultra-low-power series are the best fit, for instance, for gas/water meter, keyboard/mouse or fitness and healthcare, wearable applications. several bu ilt-in features like lcd drivers, dual-bank memory, low-power run mode , op-amp, aes 128-bit, dac, usb crystal-less and many others will clearly allow to bu ild very cost-optimized app lications by reducing bom. note: stmicroelectronics as a reliable and long-term manufacturer ensures as much as possible the pin-to-pin compatibility between an y stm8lxxxxx and stm3 2lxxxxx devices and between any of the stm32lx and stm32fx series. thanks to this unprecedented scalability, the old applications can be upgraded to respond to t he latest market features and efficiency demand. 2.2.1 performance all the families incorporate high ly energy-efficient cores with both harvard ar chitecture and pipelined execution: advanced stm8 core fo r stm8l families and ar m cortex-m3 core for stm32l family. in addition specific care for the design architecture has been taken to optimize the ma/dmips and ma/mhz ratios. this allows the ultra-low-power performance to range from 5 up to 33.3 dmips. 2.2.2 shared peripherals stm8l15xxx, stm32l15xxx and stm32l162xx share identical peripherals which ensure a very easy migration from one family to another: ? analog peripherals: adc, dac and comparators ? digital peripherals: rtc and some communication interfaces 2.2.3 common system strategy. to offer flexibility and opt imize performance, the st m8l15xxx, stm32l15xxx and stm32l162xx family uses a common architecture: ? same power supply range from 1.65 v to 3.6 v ? architecture optimized to reach ultra-low consumption both in low-power modes and run mode ? fast startup strategy from low-power modes ? flexible system clock ? ultrasafe reset: same reset strategy including powe r-on reset, power-down reset, brownout reset and programmable voltage detector 2.2.4 features st ultra-low-power continuum al so lies in feature compatibility: ? more than 15 packages with pin count from 20 to 144 pins and size down to 3 x 3 mm ? memory density ranging from 2 to 512 kbytes docid022799 rev 12 13/136 stm32l151xc stm32l152xc functional overview 51 3 functional overview figure 1. ultra-low-power stm32l151xc and stm32l152xc block diagram 0 6 y 9 3 2 : ( 5 9 2 / 7 5 ( * e l w $ ' & ( ; 7 , 7 : . 8 3 : l q : $ 7 & |